#pragma once

#include <QToolBox>
#include"XWaterGraphicsItem.h"
#include<QMimeData>
class ButtonDragToolBox : public QToolBox
{
	Q_OBJECT

public:
	ButtonDragToolBox(QWidget *parent);
	~ButtonDragToolBox();
protected:
	virtual void mouseMoveEvent(QMouseEvent* event) override;
	//virtual void mousePressEvent(QMouseEvent* event) override;

public:
	XWaterItemCfgData itemCfgDragInfo;
	QPoint dragStartPos;
};

class GraphicsItemMimeData :public QMimeData
{
	
public:
	XWaterItemCfgData currentDragInfo;
};